package eu.webmedia.recruitment.comics.strips;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;

import org.springframework.stereotype.Component;

@Component
public class WulffmorgenthalerStripUrlFinder {
	
	public String findUrl() {
		Date currentDate = new Date();
		
		DateFormat format = new SimpleDateFormat("yyyyMMdd");
		String formattedDate = format.format(currentDate);
		
		return String.format("http://wulffmorgenthaler.com/img/strip/-WM_strip_DK_%s.jpg", formattedDate);
	}

}
